<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>时间滚动</title>
        <script src="./index.js"></script>
        <style>
            .box {
                height: 82px;
                width: 54px;
                line-height: 82px;
                text-align: center;
                background-color: #149373;
                border-radius: 10px;
                margin-right: 5px;
                overflow: hidden;
                position: relative;
                display: flex;
                flex-wrap: wrap;
            }
            .num_box {
                width: 100%;
                height: 100%;
                font-size: 62px;
                transition: all 0.2s;
                transform: translate(0, 0);
            }
            .time_group {
                display: flex;
                margin: 10px;
            }
            .container {
                display: flex;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <!-- hour -->
            <div class="day_box time_group">
                <div class="box one_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                        <span class="num">7</span>
                        <span class="num">8</span>
                        <span class="num">9</span>
                    </div>
                </div>
                <div class="box tow_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                        <span class="num">7</span>
                        <span class="num">8</span>
                        <span class="num">9</span>
                    </div>
                </div>
            </div>
            <!-- hour -->
            <div class="hour_box time_group">
                <div class="box one_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                    </div>
                </div>
                <div class="box tow_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                        <span class="num">7</span>
                        <span class="num">8</span>
                        <span class="num">9</span>
                    </div>
                </div>
            </div>
            <!-- minute -->
            <div class="minute_box time_group">
                <div class="box one_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                    </div>
                </div>
                <div class="box tow_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                        <span class="num">7</span>
                        <span class="num">8</span>
                        <span class="num">9</span>
                    </div>
                </div>
            </div>
            <!-- second -->
            <div class="second_box time_group">
                <div class="box one_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                    </div>
                </div>
                <div class="box tow_box">
                    <div class="num_box">
                        <span class="num">0</span>
                        <span class="num">1</span>
                        <span class="num">2</span>
                        <span class="num">3</span>
                        <span class="num">4</span>
                        <span class="num">5</span>
                        <span class="num">6</span>
                        <span class="num">7</span>
                        <span class="num">8</span>
                        <span class="num">9</span>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
